package com.awonsome.admin.boot.pojo.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 前端路由
 *
 * @author yangdejun
 * @date 2022/1/23 22:00
 */
@Data
public class RouteVO {

    private String path;

    private String component;

    private String redirect;

    private Boolean alwaysShow;

    private String name;

    private Boolean hidden;

    private Meta meta;

    private List<RouteVO> children;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Meta {
        private String title;
        private String icon;
        private List<String> roles;
    }

}
